//    Copyright (C) Kherty.  All rights reserved.
namespace OpenLS.Core.Serialization
{
    class ExtensionText: ExtensionNode
    {
        public ExtensionText(string text)
        {
            _text = text;
        }
        private string _text;
        public string Text
        {
            get { return _text; }
        }
	
        internal override void ReadXmlCore(ReadContext context)
        {
            _text = context.Reader.Value;
            context.Reader.Read();
        }

        internal override void WriteXmlCore(WriteContext context)
        {
            context.Writer.WriteString(Text);
        }
    }
}
